package com.yanqu.road.entity.enums;

/**
 * 货币消耗类型
 */
public enum eCharitableSpecialEventRewardType {
    NotEvent("无事件", 0),
    Power("体力", 1),
    Energy("精力", 2),
    ;

    private String name;

    private int intValue;

    eCharitableSpecialEventRewardType(String name, int value) {
        intValue = value;
        this.name = name;
    }

    public static eCharitableSpecialEventRewardType forValue(int value) {
        for (eCharitableSpecialEventRewardType type : eCharitableSpecialEventRewardType.values()) {
            if (type.intValue == value) {
                return type;
            }
        }
        return null;
    }

    public int getValue() {
        return intValue;
    }

    public String getName() {
        return name;
    }
}
